module Hydrocraft
{
    imports
    {
        Base

    }

/************************ITEMS************************/


item HCCandleberrywax
    {
        Weight    		= 	0.1,
        Type    		= 	Normal,
        DisplayName         	= 	Candleberry Wax,
        icon 			= 	HCCandleberrywax,
		DisplayCategory          =   SurFarm,		
    }   

item HCBeeswax
    {
        Weight    		= 	0.1,
        Type    		= 	Normal,
        DisplayName         	= 	Beeswax,
        icon 			= 	HCBeeswax,
		DisplayCategory          =   SurApi,
    }   

item HCCandletallow
   {
	Weight			=	0.2,
	Type			=	Normal,
	DisplayName		=	Tallow Candle,
	Icon			=	HCCandletallow,
	DisplayCategory =   CraftMisc,
    }

item HCCandletallowlit
    {
	LightDistance		=	3,
	Weight			=	0.2,
	Type			=	Drainable,
	TorchCone		=	FALSE,
	UseDelta		=	0.003,
	LightStrength		=	0.6,
	DisplayName		=	Lit Tallow Candle,
	ActivatedItem		=	TRUE,
	Icon			=	HCCandletallowlit,
	DisplayCategory =   CraftMisc,
    }

item HCCandleholder
   {
	Weight			=	0.5,
	Type			=	Normal,
	DisplayName		=	Candle Holder,
	Icon			=	HCCandleholder,
	DisplayCategory =   CraftMisc,
    }

item HCCandleholder2
   {
	Weight			=	0.7,
	Type			=	Normal,
	DisplayName		=	Candle in Holder,
	Icon			=	HCCandleholder2,
	DisplayCategory =   CraftMisc,
    }

item HCCandleholder3
    {
	LightDistance		=	6,
	Weight			=	0.2,
	Type			=	Drainable,
	TorchCone		=	FALSE,
	UseDelta		=	0.003,
	LightStrength		=	0.8,
	DisplayName		=	Lit Candle in Holder,
	ActivatedItem		=	TRUE,
	Icon			=	HCCandleholder3,
	ReplaceOnDeplete	=	Hydrocraft.HCCandleholder,
	DisplayCategory =   CraftMisc,
    }

item HCMininghat
  {
  Weight    		      = 0.5,
  Type			          = Drainable,
	UseDelta		        = 0.1,
	ReplaceOnDeplete		= HCHardhat,
  DisplayName         = Candle Mining Hat,
  icon 			          = HCMininghat,
  DisplayCategory =   ClothP,
  }

item HCMininghatlamp
  {
  Weight    		= 0.5,
  Type			= Normal,
  DisplayName         	= Flashlight Mining Hat,
  icon 			= HCMininghat2,
  DisplayCategory =   ClothP,
  }

item HCMininghatlamppowered
    {
    Weight    		    = 0.5,
    Type			        = Drainable,
	  UseDelta		      = 0.3,
	  ReplaceOnDeplete	= HCMininghatlampdead,
    DisplayName       = Flashlight Mining Hat with Power,
    icon 			        = HCMininghat2,
  DisplayCategory =   ClothP,
    }

item HCMininghatlampdead
    {
        Weight    		= 0.5,
        Type			= Normal,
        DisplayName         	= Flashlight Mining Hat with Dead Battery,
        icon 			= HCMininghat2,
  DisplayCategory =   ClothP,
    }

/************************RECIPES************************/


recipe Make Mining Hat
  	{
   	Candle/HCCandletallow,
   	HCHardhat/Hat_Fireman/Hat_FootballHelmet/Hat_HardHat/Hat_HardHat_Miner/Hat_HockeyHelmet/Hat_RidingHelmet/Hat_RiotHelmet,
		HCRopethin,
   	Result:HCMininghat,
    NeedToBeLearn:true,
	  Time:50.0,
    Category:Firecraft,
    OnGiveXP:Recipe.OnGiveXP.None,
  	}

recipe Make Mining Hat
  	{
   	HCFlashlightoff,
		DuctTape=2,
   	HCHardhat/Hat_Fireman/Hat_FootballHelmet/Hat_HardHat/Hat_HardHat_Miner/Hat_HockeyHelmet/Hat_RidingHelmet/Hat_RiotHelmet,
		HCRopethin,
   	Result:HCMininghatlamp,
    NeedToBeLearn:true,
	  Time:50.0,
    Category:Firecraft,
    OnGiveXP:Recipe.OnGiveXP.None,
  	}

recipe Put Candle in Candle Holder
  	{
    destroy Candle/HCCandletallow,
   	HCCandleholder,
   	Result:HCCandleholder2,
	  Time:30.0,
    Category:Firecraft,
    OnGiveXP:Recipe.OnGiveXP.None,
  	}
    
recipe Light Candle
  	{
   	Candle,
   	[Recipe.GetItemTypes.StartFire],
   	Result:CandleLit,
	  Time:30.0,
    Category:Firecraft,
  	}

recipe Light Candle
  	{
   	HCCandletallow,
   	[Recipe.GetItemTypes.StartFire],
   	Result:HCCandletallowlit,
	  Time:30.0,
    Category:Firecraft,
  	}

recipe Light Candle
  	{
   	   	HCCandleholder2,
   	   	[Recipe.GetItemTypes.StartFire],
   		Result:HCCandleholder3,
		Time:30.0,
    		Category:Firecraft,
  	}


recipe Make Candleberry Wax
    {
    keep HCClaycauldron/HCCauldroniron,
    Charcoal,
    Water,
    [Recipe.GetItemTypes.StartFire],
    HCCandleberryseeds=5,
    Result:HCCandleberrywax,
    CanBeDoneFromFloor:true,
    NeedToBeLearn:true,
    Time:40,
    Category:Chemistry,
    OnGiveXP:HCCooking_OnGiveXP,
    }


recipe Make Wax Candle
    {
    		HCCandleberrywax/HCRefinedbeeswax/HCWaxrecycled,
		HCRopethin,
    		Result:Candle,
    		NeedToBeLearn:true,
    		Time:100,
    		Category:Chemistry,
    		OnGiveXP:HCCooking_OnGiveXP,
    }

recipe Make Tallow Candle
    {
    		HCTallow,
		HCRopethin,
    		Result:HCCandletallow,
    		NeedToBeLearn:true,
    		Time:100,
    		Category:Chemistry,
    		OnGiveXP:HCCooking_OnGiveXP,
    }

recipe Insert Battery
    {
    HCMininghatlamp,
    HCBatterysmall,
    Result:HCMininghatlamppowered,
    Time:15,
    Category:Electrical,
    }

recipe Remove Battery
    {
    HCMininghatlampdead,
    Result:HCMininghatlamp,
    Time:15,
    Category:Electrical,
    OnCreate:recipe_hcbatterysmalldead,
    }

}